package com.sz.virtualbank.web.vo.loan;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import jakarta.validation.constraints.DecimalMin;
import lombok.Data;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 提前还款请求对象
 * 
 * @author Claude
 */
@Data
@ApiModel("提前还款请求")
public class EarlyRepaymentReqVO {
    
    @ApiModelProperty(value = "贷款ID", required = true)
    @NotNull(message = "贷款ID不能为空")
    private Long loanId;
    
    @ApiModelProperty(value = "还款金额", required = true)
    @NotNull(message = "还款金额不能为空")
    @DecimalMin(value = "0.01", message = "还款金额必须大于0")
    private BigDecimal amount;
    
    @ApiModelProperty(value = "支付密码", required = true)
    @NotBlank(message = "支付密码不能为空")
    private String paymentPassword;
}
